package com.springboot.demo.service;


import com.springboot.demo.entity.Admin;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AdminService {
    public Admin login(String telephone,String password);

    public Admin register(@Param("nickname") String nickname
            ,@Param("telephone") String telephone
            ,@Param("password") String password
            ,@Param("identifiedPassword") String identifiedPassword);

    public String regiLibrarian(@Param("nickname") String nickname
            ,@Param("telephone") String telephone
            ,@Param("password") String password);


    public boolean accountValidity(String nickname,String telephone,String password,String identifiedPassword);

    public String another_accountValidity(String nickname,String telephone,String password);

//    public boolean changeAccount( String onickname, String ophonenumber, String opassword);
    public boolean changeAccount( @Param("nickname")String nickname, @Param("telephone")String phonenumber, @Param("password")String password);


    public Admin delete(String phone);

    public Admin modify(String phone, String phone1, String lname, String password);

    public List<Admin> getAll(int page,int limit);

    public void modify_base(String name,int value);
}
